package warpper;

public class AutoBoxingDemo {
    public static void main(String[] args) {
        int a = 123;
        /**
         * 自动拆装箱
         */
        Integer i =Integer.valueOf(a);//装箱
        int b = i.intValue();//拆箱
        method(b);
    }
    public static void method(Object i){
        System.out.println(i);

    }
}
